package com.itheima.test;

import com.tanhua.commons.utils.Constants;
import com.tanhua.server.AppServerApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = AppServerApplication.class)
public class testDemo {

    @Autowired
    private RedisTemplate<String,String> redisTemplate;

    @Test
    public void setData(){
        redisTemplate.opsForValue().set(Constants.MOVEMENTS_RECOMMEND+106,"16,17,18,19,20,21,22,23,24,25");
    }
    public static void main(String[] args) {
        int [] a = new int[10];
        String s = "asdk";
    }
    public static int add(int a,int b){
        return 1;
    }
    public static double add(double a,int b){
        return 2.0;
    }
}
